function qty_code_select() { var margin_width = 1.5; //ÆøÀç´Ü¿©¹é(ÇÑÂÊ) var max_width = 304; //Æø±âÁØ(¿ëÁö) var max_height = 254; //±æÀ̱âÁØ(¿ëÁö) var basic_qty = 250; //300*250±âÁØ Á¦À۸żö var pan_width_level = 0; //Æø Á¶ÆÇ°ª var pan_width = Number(document.orderform.size01.value); //Àμ⹰ Æø(ÆíÁý»çÀÌÁî) var pan_height = Number(document.orderform.size02.value); //Àμ⹰ ±æÀÌ(ÆíÁý»çÀÌÁî) var size_code = document.orderform.size_code.value; //ÇÕÆÇ»çÀÌÁîÄڵ尪 //ÇÕÆÇ»çÀÌÁî¿¡ ´ëÇÑ °ª if (size_code == "psscx") {pan_width = 50; pan_height = 50;} else if (size_code == "psscy") {pan_width = 60; pan_height = 60;} else if (size_code == "psscz") {pan_width = 70; pan_height = 70;} else if (size_code == "pssd0") {pan_width = 100; pan_height = 50;} //ÆíÁý»çÀÌÁî º¸¿©ÁÖ±â document.all.span_cut_width.innerHTML = pan_width + 2; document.all.span_cut_height.innerHTML = pan_height + 2; var pan_width_qty = 0; //Æø±âÁØ Á¦À۸żö //Æø Á¶ÆÇ ±¸Çϱâ //1.ÆøÆíÁý±¸Çϱâ = Àμ⹰Æø + (ÆøÀç´Ü¿©¹é*2) pan_width_level = pan_width + (margin_width*2); //2.Æø Á¶ÆDZ¸Çϱâ pan_width_level = Math.floor(max_width / pan_width_level); //Æø±âÁØ Á¦À۸żö pan_width_qty = basic_qty * pan_width_level; //Àμ⹰ Á¦À۸żö¸¦ ¼±ÅÃÇÏÁö ¾Ê¾Ò´Ù¸é ÀÏ´Ü 1Åë¸Å¼ö(Æø±âÁØ Á¦À۸żö)¸¦ ¼±ÅÃÇÑ °ÍÀ¸·Î ÇÑ´Ù. if (pan_width <= 57 && pan_width >= 31) { for(var i = 0; i <= 0; i++) { document.orderform.qty_code.options[i].value = 1000; document.orderform.qty_code.options[i].text = comma(1000)+"¸Å"; } for(var i = 1; i <= 100; i++) { document.orderform.qty_code.options[i].value = pan_width_qty*((i-1)+1); document.orderform.qty_code.options[i].text = comma(pan_width_qty*((i-1)+1))+"¸Å"; } //101Ä­ ÀÌÈķδ 5´Ü°è¾¿ °Ç³Ê¶Ù¾î¶ó for(var i = 101; i <= 159; i++) { document.orderform.qty_code.options[i].value = ((pan_width_qty*100)+(i-100)*5*pan_width_qty); document.orderform.qty_code.options[i].text = comma(((pan_width_qty*100)+(i-100)*5*pan_width_qty))+"¸Å"; } } else if (pan_width <= 30 && pan_width >= 21) { for(var i = 0; i <= 1; i++) { document.orderform.qty_code.options[i].value = 1000*(i+1); document.orderform.qty_code.options[i].text = comma(1000*(i+1))+"¸Å"; } for(var i = 2; i <= 101; i++) { document.orderform.qty_code.options[i].value = pan_width_qty*((i-2)+1); document.orderform.qty_code.options[i].text = comma(pan_width_qty*((i-2)+1))+"¸Å"; } //102Ä­ ÀÌÈķδ 5´Ü°è¾¿ °Ç³Ê¶Ù¾î¶ó for(var i = 102; i <= 159; i++) { document.orderform.qty_code.options[i].value = ((pan_width_qty*100)+(i-101)*5*pan_width_qty); document.orderform.qty_code.options[i].text = comma(((pan_width_qty*100)+(i-101)*5*pan_width_qty))+"¸Å"; } } else if (pan_width <= 20 && pan_width >= 15) { for(var i = 0; i <= 2; i++) { document.orderform.qty_code.options[i].value = 1000*(i+1); document.orderform.qty_code.options[i].text = comma(1000*(i+1))+"¸Å"; } for(var i = 3; i <= 102; i++) { document.orderform.qty_code.options[i].value = pan_width_qty*((i-3)+1); document.orderform.qty_code.options[i].text = (pan_width_qty*((i-3)+1))+"¸Å"; } //103Ä­ ÀÌÈķδ 5´Ü°è¾¿ °Ç³Ê¶Ù¾î¶ó for(var i = 103; i <= 159; i++) { document.orderform.qty_code.options[i].value = ((pan_width_qty*100)+(i-102)*5*pan_width_qty); document.orderform.qty_code.options[i].text = comma(((pan_width_qty*100)+(i-102)*5*pan_width_qty))+"¸Å"; } } else if (pan_width <= 14 && pan_width >= 12) { for(var i = 0; i <= 3; i++) { document.orderform.qty_code.options[i].value = 1000*(i+1); document.orderform.qty_code.options[i].text = comma(1000*(i+1))+"¸Å"; } for(var i = 4; i <= 103; i++) { document.orderform.qty_code.options[i].value = pan_width_qty*((i-4)+1); document.orderform.qty_code.options[i].text = comma(pan_width_qty*((i-4)+1))+"¸Å"; } //104Ä­ ÀÌÈķδ 5´Ü°è¾¿ °Ç³Ê¶Ù¾î¶ó for(var i = 104; i <= 159; i++) { document.orderform.qty_code.options[i].value = ((pan_width_qty*100)+(i-103)*5*pan_width_qty); document.orderform.qty_code.options[i].text = comma(((pan_width_qty*100)+(i-103)*5*pan_width_qty))+"¸Å"; } // for(var i = 100; i <= 159; i++) { // document.orderform.qty_code.options[i].value = ''; document.orderform.qty_code.options[i].text = "----"; // } } else if (pan_width <= 11 && pan_width >= 10) { for(var i = 0; i <= 4; i++) { document.orderform.qty_code.options[i].value = 1000*(i+1); document.orderform.qty_code.options[i].text = comma(1000*(i+1))+"¸Å"; } for(var i = 5; i <= 104; i++) { document.orderform.qty_code.options[i].value = pan_width_qty*((i-5)+1); document.orderform.qty_code.options[i].text = comma(pan_width_qty*((i-5)+1))+"¸Å"; } //105Ä­ ÀÌÈķδ 5´Ü°è¾¿ °Ç³Ê¶Ù¾î¶ó for(var i = 105; i <= 159; i++) { document.orderform.qty_code.options[i].value = ((pan_width_qty*100)+(i-104)*5*pan_width_qty); document.orderform.qty_code.options[i].text = comma(((pan_width_qty*100)+(i-104)*5*pan_width_qty))+"¸Å"; } } else { for(var i = 0; i <= 99; i++) { document.orderform.qty_code.options[i].value = pan_width_qty*(i+1); document.orderform.qty_code.options[i].text = comma(pan_width_qty*(i+1))+"¸Å"; } //100Ä­ ÀÌÈķδ 5´Ü°è¾¿ °Ç³Ê¶Ù¾î¶ó for(var i = 100; i <= 159; i++) { document.orderform.qty_code.options[i].value = ((pan_width_qty*100)+(i-99)*5*pan_width_qty); document.orderform.qty_code.options[i].text = comma(((pan_width_qty*100)+(i-99)*5*pan_width_qty))+"¸Å"; } } //ÇÕÆÇ»çÀÌÁî¿¡ ¸Å¼ö´Â 1000 ~ 5000¸Å±îÁö¸¸... if (size_code == "psscx" || size_code == "psscy" || size_code == "psscz" || size_code == "pssd0") { for(var i = 0; i <= 2; i++) { document.orderform.qty_code.options[i].value = 1000*(i+1); document.orderform.qty_code.options[i].text = comma(1000*(i+1))+"¸Å"; } for(var i = 3; i <= 159; i++) { document.orderform.qty_code.options[i].value = ''; document.orderform.qty_code.options[i].text = "----"; } } } //±æÀÌÇÒÁõÀû¿ë°¡ function size_change_text() { var subtitle = document.orderform.product_num.value; var margin_width = 1.5; //ÆøÀç´Ü¿©¹é(ÇÑÂÊ) var margin_height = 1.5; //±æÀÌÀç´Ü¿©¹é(ÇÑÂÊ) var max_width = 304; //Æø±âÁØ(¿ëÁö) var max_height = 254; //±æÀ̱âÁØ(¿ëÁö) var basic_qty = 250; //300*250±âÁØ Á¦À۸żö var pan_width_level = 0; //Æø Á¶ÆÇ°ª var pan_height_level = 0; //±æÀÌ Á¶ÆÇ°ª var pan_width = Number(document.orderform.size01.value); //Àμ⹰ Æø(ÆíÁý»çÀÌÁî) var pan_height = Number(document.orderform.size02.value); //Àμ⹰ ±æÀÌ(ÆíÁý»çÀÌÁî) var pan_width_qty = 0; //Æø±âÁØ Á¦À۸żö var tong_qty = 0; //Àμâ Åë¼ö var qty_code = document.orderform.qty_code.value; //Àμ⹰ Á¦ÀÛ ¸Å¼ö //var qty_code = 500; //Àӽà Á¦ÀÛ ¸Å¼ö¸¦ ³Ö¾îÁØ´Ù. ³ªÁß¿¡ °í°´ÀÌ ¼±Åðª ¹Þ¾Æ¾ß ÇÔ. //var qty_code = 11500; //Àӽà Á¦ÀÛ ¸Å¼ö¸¦ ³Ö¾îÁØ´Ù. ³ªÁß¿¡ °í°´ÀÌ ¼±Åðª ¹Þ¾Æ¾ß ÇÔ. var pan_width_str = 0; //ÆøÁ¶ÆǽÃÀÛ var pan_width_end = 0; //ÆøÁ¶Ædz¡ var str_qty250 = 0; //Á¶ÆǺ° 250Àå ½ÃÀÛ°¡ var end_qty250 = 0; //Á¶ÆǺ° 250Àå Á¾·á°¡ var mm_price = 0; //Á¶ÆǺ° mm´Ü°¡ var pan_max_str = 0; //ÆøÁ¶ÆǺ° ÃÖ´ë½ÃÀÛ°¡ var pan_max_end = 0; //ÆøÁ¶ÆǺ° ÃÖ´ëÁ¾·á°¡ var pan_mm_sale_str = 0; //Æø±âÁغ° ±æÀÌmm´ç ÇÒÀνÃÀÛ°¡ var pan_mm_sale_end = 0; //Æø±âÁغ° ±æÀÌmm´ç ÇÒÀÎÁ¾·á°¡ var dan_value = 0; //´Ü°è°ª var size_code = document.orderform.size_code.value; //ÇÕÆÇ»çÀÌÁîÄڵ尪 //ÇÕÆÇ»çÀÌÁî¿¡ ´ëÇÑ °ª if (size_code == "psscx") {pan_width = 50; pan_height = 50;} else if (size_code == "psscy") {pan_width = 60; pan_height = 60;} else if (size_code == "psscz") {pan_width = 70; pan_height = 70;} else if (size_code == "pssd0") {pan_width = 100; pan_height = 50;} document.all.pan_width.innerHTML = comma(pan_width); document.all.pan_height.innerHTML = comma(pan_height); document.all.margin_width.innerHTML = comma(margin_width); document.all.margin_height.innerHTML = comma(margin_height); document.all.basic_qty.innerHTML = comma(basic_qty); //Æø Á¶ÆÇ ±¸Çϱâ //1.ÆøÆíÁý±¸Çϱâ = Àμ⹰Æø + (ÆøÀç´Ü¿©¹é*2) pan_width_level = pan_width + (margin_width*2); // alert("pan_width_level: "+ pan_width_level); //2.Æø Á¶ÆDZ¸Çϱâ pan_width_level = Math.floor(max_width / pan_width_level); document.all.pan_width_level.innerHTML = comma(pan_width_level); //±æÀÌ Á¶ÆÇ ±¸Çϱâ pan_height_level = pan_height + (margin_height*2); pan_height_level = Math.floor(max_height / pan_height_level); document.all.pan_height_level.innerHTML = comma(pan_height_level); //Æø±âÁØ Á¦À۸żö pan_width_qty = basic_qty * pan_width_level; document.all.pan_width_qty.innerHTML = comma(pan_width_qty); //ÀμâÅë¼ö tong_qty = qty_code / pan_width_qty; document.all.tong_qty.innerHTML = comma(tong_qty); //ÆøÁ¶ÆÇ °ü·Ã °ªµé if (pan_width_level == 1){ pan_width_str = 300; pan_width_end = 150; str_qty250 = 63100; end_qty250 = 55000; pan_max_str = 5497000; pan_max_end = 2840500; pan_mm_sale_str = 53; pan_mm_sale_end = 26.8; } else if (pan_width_level == 2){ pan_width_str = 149; pan_width_end = 99; str_qty250 = 63400; end_qty250 = 58000; pan_max_str = 5584700; pan_max_end = 3813700; pan_mm_sale_str = 55; pan_mm_sale_end = 35.7; } else if (pan_width_level == 3){ pan_width_str = 98; pan_width_end = 74; str_qty250 = 63500; end_qty250 = 59600; pan_max_str = 5637000; pan_max_end = 4631900; pan_mm_sale_str = 53; pan_mm_sale_end = 43.2; } else if (pan_width_level == 4){ pan_width_str = 73; pan_width_end = 58; str_qty250 = 63700; end_qty250 = 60500; pan_max_str = 5724700; pan_max_end = 4662100; pan_mm_sale_str = 53.2; pan_mm_sale_end = 42.7; } else if (pan_width_level == 5){ pan_width_str = 57; pan_width_end = 48; str_qty250 = 63700; end_qty250 = 61300; pan_max_str = 5723900; pan_max_end = 4926900; pan_mm_sale_str = 53; pan_mm_sale_end = 44.6; } else if (pan_width_level == 6){ pan_width_str = 47; pan_width_end = 41; str_qty250 = 63800; end_qty250 = 61900; pan_max_str = 5793900; pan_max_end = 5156300; pan_mm_sale_str = 52.5; pan_mm_sale_end = 46.2; } else if (pan_width_level == 7){ pan_width_str = 40; pan_width_end = 36; str_qty250 = 64100; end_qty250 = 62600; pan_max_str = 5881600; pan_max_end = 5385700; pan_mm_sale_str = 52.7; pan_mm_sale_end = 47.8; } else if (pan_width_level == 8){ pan_width_str = 35; pan_width_end = 31; str_qty250 = 64400; end_qty250 = 62700; pan_max_str = 6004700; pan_max_end = 5438000; pan_mm_sale_str = 53.2; pan_mm_sale_end = 47.6; } else if (pan_width_level == 9){ pan_width_str = 30; pan_width_end = 28; str_qty250 = 64200; end_qty250 = 63200; pan_max_str = 5950700; pan_max_end = 5631900; pan_mm_sale_str = 52; pan_mm_sale_end = 48.7; } else if (pan_width_level == 10){ pan_width_str = 27; pan_width_end = 25; str_qty250 = 64500; end_qty250 = 63500; pan_max_str = 6073900; pan_max_end = 5719700; pan_mm_sale_str = 52.5; pan_mm_sale_end = 49; } else if (pan_width_level == 11){ pan_width_str = 24; pan_width_end = 23; str_qty250 = 64600; end_qty250 = 64000; pan_max_str = 6090700; pan_max_end = 5895900; pan_mm_sale_str = 51.9; pan_mm_sale_end = 50.1; } else if (pan_width_level == 12){ pan_width_str = 22; pan_width_end = 21; str_qty250 = 64900; end_qty250 = 64300; pan_max_str = 6213900; pan_max_end = 6001300; pan_mm_sale_str = 52.5; pan_mm_sale_end = 50.4; } else if (pan_width_level == 13){ pan_width_str = 20; pan_width_end = 19; str_qty250 = 65000; end_qty250 = 64300; pan_max_str = 6226100; pan_max_end = 6035900; pan_mm_sale_str = 52; pan_mm_sale_end = 50.1; } else if (pan_width_level == 14){ pan_width_str = 18; pan_width_end = 18; str_qty250 = 64900; end_qty250 = 64900; pan_max_str = 6247600; pan_max_end = 6247600; pan_mm_sale_str = 51.5; pan_mm_sale_end = 51.5; } else if (pan_width_level == 15){ pan_width_str = 17; pan_width_end = 17; str_qty250 = 65400; end_qty250 = 65400; pan_max_str = 6423900; pan_max_end = 6423900; pan_mm_sale_str = 52.5; pan_mm_sale_end = 52.5; } else if (pan_width_level == 16){ pan_width_str = 16; pan_width_end = 15; str_qty250 = 65800; end_qty250 = 65000; pan_max_str = 6564700; pan_max_end = 6281300; pan_mm_sale_str = 53.2; pan_mm_sale_end = 53.2; } else if (pan_width_level == 17){ pan_width_str = 14; pan_width_end = 14; str_qty250 = 65200; end_qty250 = 65200; pan_max_str = 6369000; pan_max_end = 6369000; pan_mm_sale_str = 50.4; pan_mm_sale_end = 50.4; } else if (pan_width_level == 19){ pan_width_str = 13; pan_width_end = 13; str_qty250 = 65300; end_qty250 = 65300; pan_max_str = 6774700; pan_max_end = 6774700; pan_mm_sale_str = 53.2; pan_mm_sale_end = 53.2; } else if (pan_width_level == 20){ pan_width_str = 12; pan_width_end = 12; str_qty250 = 66300; end_qty250 = 66300; pan_max_str = 6773900; pan_max_end = 6773900; pan_mm_sale_str = 52.5; pan_mm_sale_end = 52.5; } else if (pan_width_level == 21){ pan_width_str = 11; pan_width_end = 11; str_qty250 = 66100; end_qty250 = 66100; pan_max_str = 6737600; pan_max_end = 6737600; pan_mm_sale_str = 51.6; pan_mm_sale_end = 51.6; } else if (pan_width_level == 23){ pan_width_str = 10; pan_width_end = 10; str_qty250 = 66800; end_qty250 = 66800; pan_max_str = 6966100; pan_max_end = 6966100; pan_mm_sale_str = 52.3; pan_mm_sale_end = 52.3; } //Á¶ÆǺ° mm´Ü°¡ if ((str_qty250 - end_qty250) == 0){ mm_price = 0; } else { mm_price = (str_qty250 - end_qty250) / (pan_width_str - pan_width_end); mm_price = Math.round(mm_price*100000000)/100000000; } //alert("Á¶ÆǺ° 250½ÃÀÛ°¡:" + str_qty250 + " end_qty250:" + end_qty250 + " pan_width_str:" + pan_width_str + " pan_width_end:" + pan_width_end); //´Ü°è°ª if ((pan_mm_sale_str - pan_mm_sale_end) == 0){ dan_value = 0; } else { dan_value = (pan_mm_sale_str - pan_mm_sale_end) / (pan_width_str - pan_width_end); dan_value = Math.round(dan_value*100000000)/100000000; } document.all.str_qty250.innerHTML = comma(str_qty250); document.all.end_qty250.innerHTML = comma(end_qty250); document.all.mm_price.innerHTML = comma(mm_price); //250Àå °¡°Ý±¸Çϱâ(Æø¹æÇâ*250) //ÆøÇÒÀÎÀû¿ë°¡ ±¸Çϱâ //Á¶ÆǺ° 250½ÃÀÛ°¡ - (Á¶ÆǺ° mm´Ü°¡ * (ÆøÁ¶ÆǽÃÀÛ - Æø¹æÇâ)) var pan_width_sale_price = 0; pan_width_sale_price = str_qty250 - (mm_price * (pan_width_str - pan_width)); //100¿ø´ÜÀ§ ¹Ý¿Ã¸² pan_width_sale_price = Math.round(pan_width_sale_price/100)*100; document.all.pan_width_sale_price.innerHTML = comma(pan_width_sale_price); //alert("ÆøÇÒÀÎÀû¿ë°¡:" + pan_width_sale_price); //alert("Á¶ÆǺ° 250½ÃÀÛ°¡:" + str_qty250 + " mm_price:" + mm_price + " pan_width_str:" + pan_width_str + " pan_width:" + pan_width); document.all.pan_max_str.innerHTML = comma(pan_max_str); document.all.pan_max_end.innerHTML = comma(pan_max_end); //Åë¼öº° ´Ü°è°ª±¸Çϱâ(ÃÖ´ë½ÃÀÛ°¡) //1Åë´ç Àû¿ë±Ý¾× ( ±âº»1Åë°¡°Ý ÀÌÈÄ Ãß°¡µÇ´Â Åë¿¡ ´ëÇÑ °¡°Ý. Áï, 1Åë + Ãß°¡1Åë ÃÑ2ÅëÀ̶ó¸é, Ãß°¡1Åë¿¡ ´ëÇÑ °¡°Ý) //(ÆøÁ¶ÆǺ° ÃÖ´ë½ÃÀÛ - ÆøÁ¶ÆǺ° 250Àå ½ÃÀÛ°¡) / 399 var plus_tong_price_max = 0; var plus_tong_price_min = 0; plus_tong_price_max = (pan_max_str - str_qty250) / 399; plus_tong_price_min = (pan_max_end - end_qty250) / 399; document.all.plus_tong_price_max.innerHTML = comma(plus_tong_price_max); document.all.plus_tong_price_min.innerHTML = comma(plus_tong_price_min); document.all.plus_tong_price_max_02.innerHTML = comma(plus_tong_price_max); document.all.plus_tong_price_min_02.innerHTML = comma(plus_tong_price_min); //alert("plus_tong_price_max:" + plus_tong_price_max); //alert("plus_tong_price_min:" + plus_tong_price_min); //Åë¼öº° ´Ü°è°ª±¸Çϱâ //Àû¿ëÅë¼ö ´Ü°è°ª ±¸Çϱâ var tong_step_price = 0; var imsi_plus_tong_price = 0; var imsi_pan_width_minus = 0; var imsi_mm_tong_step_price = 0; //ÆøÁ¶ÆÇ mm´ç Åë¼ö´Ü°è°ª //1Åë´ç Àû¿ë±Ý¾× Â÷ÀÌ(ÃÖ´ë-ÃÖ¼Ò) imsi_plus_tong_price = Number(plus_tong_price_max) - Number(plus_tong_price_min); document.all.imsi_plus_tong_price.innerHTML = comma(imsi_plus_tong_price); //Æø»çÀÌÁî ÃÖ´ë-ÃÖ¼Ò Â÷ÀÌ imsi_pan_width_minus = pan_width_str - pan_width_end; document.all.imsi_pan_width_minus.innerHTML = comma(imsi_pan_width_minus); //ÆøÁ¶ÆÇ mm´ç Åë¼ö´Ü°è°ª if (imsi_plus_tong_price == 0 ){ imsi_mm_tong_step_price = 0; } else{ imsi_mm_tong_step_price = imsi_plus_tong_price / imsi_pan_width_minus; } document.all.imsi_mm_tong_step_price.innerHTML = comma(imsi_mm_tong_step_price); tong_step_price = imsi_mm_tong_step_price * (pan_width_str - pan_width); tong_step_price = plus_tong_price_max - tong_step_price; //Àû¿ëÅë¼ö ´Ü°è°ª -- ¹é¿ø´ÜÀ§ ¸¸µé±â // ÀÌ °¡°ÝÀÌ Ãß°¡µÇ´Â 1Åë °¡°ÝÀÌ µÊ tong_step_price = Math.round(tong_step_price/100)*100; document.all.tong_step_price.innerHTML = comma(tong_step_price); //alert("Àû¿ëÅë¼ö ´Ü°è°ª:" + tong_step_price); //°è»êÅë¼ö var cnt_tong_qty = 0; cnt_tong_qty = tong_qty - 1; document.all.cnt_tong_qty.innerHTML = comma(cnt_tong_qty); //°è»ê1 - ÆøÇÒÀÎÀû¿ë°¡ ±¸ÇÏ´Â ´Ü°è var count01 = 0; count01 = tong_step_price * cnt_tong_qty; document.all.count01.innerHTML = comma(count01); //alert("°è»ê1:" + count01); //ÆøÇÒÀÎÀû¿ë°¡(1Åë°¡°Ý+Ãß°¡Åë¼ö°¡°Ý) var total_pan_width_sale_price = 0; total_pan_width_sale_price = pan_width_sale_price + count01; total_pan_width_sale_price = Math.round(total_pan_width_sale_price/100)*100; //¹é¿ø´ÜÀ§·Î ¹Ý¿Ã¸² document.all.total_pan_width_sale_price.innerHTML = comma(total_pan_width_sale_price); //alert("ÆøÇÒÀÎÀû¿ë°¡(1Åë°¡°Ý+Ãß°¡Åë¼ö°¡°Ý):" + total_pan_width_sale_price); //±æÀ̹æÇâ ÇÒÀΰª ±¸Çϱâ //±æÀ̹æÇâ°è»ê var pan_height_rest = 0; pan_height_rest = 253 - pan_height; document.all.pan_height_rest.innerHTML = comma(pan_height_rest); //1mm´ç ±æÀ̹æÇâ ÇÒÀδܰ¡ var height_1mm_saleprice = 0; //Æø¹æÇâ°è»ê : (pan_width_str - pan_width) * ´Ü°è°ª height_1mm_saleprice = (pan_width_str - pan_width) * dan_value; //alert("pan_width_str:" + pan_width_str + " pan_width:" + pan_width + " dan_value:" + dan_value); document.all.height_1mm_saleprice.innerHTML = comma(height_1mm_saleprice); //°è»ê1 - ±æÀ̹æÇâ ÇÒÀ઱¸Çϱâ var height_count01 = 0; height_count01 = pan_mm_sale_str - height_1mm_saleprice; document.all.height_count01.innerHTML = comma(height_count01); //°è»ê2 - ±æÀ̹æÇâ ÇÒÀ઱¸Çϱâ var height_count02 = 0; height_count02 = height_count01 * pan_height_rest; document.all.height_count02.innerHTML = comma(height_count02); //°è»ê3 - ±æÀ̹æÇâ ÇÒÀ઱¸Çϱâ var height_count03 = 0; height_count03 = height_count02 * tong_qty; document.all.height_count03.innerHTML = comma(height_count03); //±æÀÌÇÒÁõÀû¿ë°¡ var total_pan_height_sale_price = 0; total_pan_height_sale_price = total_pan_width_sale_price - height_count03; total_pan_height_sale_price = Math.round(total_pan_height_sale_price/100)*100; document.all.total_pan_height_sale_price.innerHTML = comma(total_pan_height_sale_price); //alert(total_pan_height_sale_price); //¿©±â±îÁö ÀÌ»ó¾øÀ½ //¿©±âºÎÅÍ ¼Ò·® ¼ö·® °¡°Ý //pan_width_qty : óÀ½ ¼ö·® (Æø±âÁØÁ¦À۸żö) //qty_code : ¼±Åüö·® (¼Ò·®Á¦ÀÛ¼ö·®) var little_qty_code = 0; little_qty_code = qty_code; var little_piece_price = 0; var little_width_qty = 0; var little_sale_price = 0; var little_total_price = 0; if (pan_width <= 57 && (tong_qty <= 1) && (little_qty_code == 1000 || little_qty_code == 2000 || little_qty_code == 3000 || little_qty_code == 4000 || little_qty_code == 5000)) { //1. ±âº»¸Å¼ö¿¡ ´ëÇÑ ±æÀÌÇÒÁõÀû¿ë°¡¸¦ ÀÎDz¹Ú½º imsi_pay ¿¡ ³Ö¾îµÐ´Ù. //2. ¿ø·¡ ±æÀ̹æÇâÇÒÀΰ¡ °è»ê2 °ªÀ» ÀÎDz¹Ú½º height_count02_vle ¿¡ ³Ö¾îµÐ´Ù. little_size_change_text(); //±æÀ̹æÇâÇÒÀΰ¡ °è»ê2 var little_height_count02 = 0; little_height_count02 = Number(document.orderform.height_count02_vle.value); //Æø±âÁØÁ¦À۸żö var little_pan_width_qty = 0; little_pan_width_qty = pan_width_qty; //¼Ò·®¼ö·® Àå´ç´Ü°¡ little_piece_price = Math.round((little_height_count02 / little_pan_width_qty)*100)/100; //Æø±âÁØÁ¦À۸żö - ¼Ò·®Á¦ÀÛ¼ö·® little_width_qty = pan_width_qty - qty_code; //ÇÒÀÎ±Ý¾× little_sale_price = Math.round(little_piece_price * little_width_qty); //±âº»¸Å¼ö¿¡ ´ëÇÑ ±æÀÌÇÒÁõÀû¿ë°¡ var little_total_pan_height_sale_price = 0; little_total_pan_height_sale_price = Number(document.orderform.imsi_pay.value); //¼Ò·®¼ö·®°¡°ÝÀÇ ±æÀÌÇÒÁõÀû¿ë°¡ document.all.total_pan_height_sale_price02.innerHTML = comma(little_total_pan_height_sale_price); //¼Ò·®¼ö·®°¡°Ý little_total_price = little_total_pan_height_sale_price - little_sale_price; //´Ù½Ã À§ º¯¼ö¿¡ ³Ö¾îÁØ´Ù. total_pan_height_sale_price = little_total_price; } document.all.little_height_count02.innerHTML = comma(little_height_count02); document.all.little_pan_width_qty.innerHTML = comma(little_pan_width_qty); document.all.little_qty_code.innerHTML = comma(little_qty_code); document.all.little_piece_price.innerHTML = comma(little_piece_price); document.all.little_width_qty.innerHTML = comma(little_width_qty); document.all.little_sale_price.innerHTML = comma(little_sale_price); document.all.little_total_price.innerHTML = comma(little_total_price); //¿©±â±îÁö ¼Ò·® ¼ö·® °¡°Ý //Áö´ë°ª ±¸ÇÔ paper_change_price(); var paper_price = 0; paper_price = Number(document.orderform.paper_price.value); //ÄÚÆ𪠱¸ÇÔ coating_change_price(); var coting_price = 0; coting_price = Number(document.orderform.coting_price.value); //µµ¹«¼Û ±¸ÇÔ domusong_price(); var after_price_domoo = 0; after_price_domoo = Number(document.orderform.after_price_domoo.value); //ÇÕÆÇ»çÀÌÁî¿¡ ´ëÇÑ °ª 50% ÇÒÀÎ //Á¦ÁÖµµ 1.1¹è °¡°Ý Àλó if (size_code == "psscx" || size_code == "psscy" || size_code == "psscz" || size_code == "pssd0") { document.orderform.pay.value = Math.round(((total_pan_height_sale_price + paper_price + coting_price + after_price_domoo) / 2 * 1.1) /100) * 100 * subtitle; } else { document.orderform.pay.value = Math.round((total_pan_height_sale_price + paper_price + coting_price + after_price_domoo) * 1.1 / 100) * 100 * subtitle; } //document.all.span_price.innerHTML = Math.round((total_pan_height_sale_price + paper_price + coting_price + after_price_domoo)/100) * 100 * subtitle; //ÈÄ°¡°ø ¹Ú°¡°Ý Ãß°¡ (°Ç¼ö°¡ °öÇØÁ® ÀÖÀ½) var after_bak = document.orderform.after_bak.value; if (after_bak == "0") { bak_price_roll(); } else{ document.all.span_total_after_price_plus.innerHTML = 0; } price01_change(); } //½ºÆ¼Ä¿ Áö´ë°ª function paper_change_price() { var paper_kind = document.orderform.paper_code.value; //Á¾ÀÌ Á¾·ù var paper_base_price = 0; //Á¾ÀÌ ¿ø°¡ var paper_final_price = 0; //Á¾ÀÌ ÆǸŰ¡ if (paper_kind == "ppk28"){ //¾ÆÆ®ÁöÀϹÝÄ®¼± paper_base_price = 604;} else if (paper_kind == "ppk71"){ //À¯Æ÷Áö paper_base_price = 918;} else if (paper_kind == "ppkmd"){ //Àº±¤µ¥µå·Õ paper_base_price = 1145;} else if (paper_kind == "ppkn8"){ //Åõ¸íµ¥µå·Õ paper_base_price = 918;} else if (paper_kind == "ppk19"){ //¸ðÁ¶Áö paper_base_price = 583;} // else if (paper_kind == ""){ //90g¾ÆÆ® // paper_base_price = 788;} else if (paper_kind == "ppkda"){ //Å©¶óÇÁÆ® paper_base_price = 918;} else if (paper_kind == "ppkme"){ //Àº¹«µ¥µå·Õ paper_base_price =1250;} else if (paper_kind == "ppkmj"){ //Åõ¸íµ¥µå·Õ50g paper_base_price =1150;} else if (paper_kind == "ppkmk"){ //Àº¹«µ¥µå·Õ50g paper_base_price =1400;} else if (paper_kind == "ppkml"){ //Àº±¤µ¥µå·Õ50g paper_base_price =1300;} else { paper_base_price = 0;} //ÆǸŰ¡ paper_final_price = paper_base_price * 1.5; document.all.paper_final_price.innerHTML = comma(paper_final_price); //1mm´ç°¡°Ý ±âº»´Ü°¡ var basic_1mm_price = 0; basic_1mm_price = paper_final_price * 0.0001; document.all.basic_1mm_price.innerHTML = comma(basic_1mm_price); //Æø¹æÇâ cmº¯È¯ var margin_width = 1.5; //ÆøÀç´Ü¿©¹é(ÇÑÂÊ) var margin_height = 1.5; //±æÀÌÀç´Ü¿©¹é(ÇÑÂÊ) var pan_width_cm = 0; //Æø cm°ª var pan_height_cm = 0; //Æø cm°ª var pan_width = Number(document.orderform.size01.value); //Àμ⹰ Æø(ÆíÁý»çÀÌÁî) var pan_height = Number(document.orderform.size02.value); //Àμ⹰ ±æÀÌ(ÆíÁý»çÀÌÁî) var max_width = 304; //Æø±âÁØ(¿ëÁö) var max_height = 254; //±æÀ̱âÁØ(¿ëÁö) var basic_qty = 250; //300*250±âÁØ Á¦À۸żö var pan_width_level = 0; //Æø Á¶ÆÇ°ª var pan_height_level = 0; //±æÀÌ Á¶ÆÇ°ª var qty_code = document.orderform.qty_code.value; //Àμ⹰ Á¦ÀÛ ¸Å¼ö var size_code = document.orderform.size_code.value; //ÇÕÆÇ»çÀÌÁîÄڵ尪 //ÇÕÆÇ»çÀÌÁî¿¡ ´ëÇÑ °ª if (size_code == "psscx") {pan_width = 50; pan_height = 50;} else if (size_code == "psscy") {pan_width = 60; pan_height = 60;} else if (size_code == "psscz") {pan_width = 70; pan_height = 70;} else if (size_code == "pssd0") {pan_width = 100; pan_height = 50;} //ÆøÆíÁý±¸Çϱâ = Àμ⹰Æø + (ÆøÀç´Ü¿©¹é*2) : cm·Î ¸¸µé±â pan_width_cm = (pan_width + (margin_width*2)) / 10; //±æÀÌÆíÁý±¸Çϱâ : cm·Î ¸¸µé±â pan_height_cm = (pan_height + (margin_height*2)) / 10; document.all.pan_width_cm.innerHTML = comma(pan_width_cm); document.all.pan_height_cm.innerHTML = comma(pan_height_cm); //Æø Á¶ÆÇ ±¸Çϱâ pan_width_level = pan_width + (margin_width*2); pan_width_level = Math.floor(max_width / pan_width_level); //±æÀÌ Á¶ÆÇ ±¸Çϱâ pan_height_level = pan_height + (margin_height*2); pan_height_level = Math.floor(max_height / pan_height_level); //1ÀåÁ¦À۸żö var make_qty_1paper = 0; make_qty_1paper = pan_width_level * pan_height_level; document.all.make_qty_1paper.innerHTML = comma(make_qty_1paper); //¿©±âºÎÅÍ ¼Ò·® ¼ö·® °¡°Ý ºÎºÐ //Æø±âÁØ Á¦À۸żö pan_width_qty = basic_qty * pan_width_level; if (pan_width <= 57 && qty_code < pan_width_qty) { //Æø±âÁØÁ¦À۸żö¸¦ ¼±ÅÃÇѸżöó·³ ³Ö¾î Áö´ë°ªÀ» ±¸ÇÑ´Ù. qty_code = pan_width_qty; } //¿©±â±îÁö ¼Ò·® ¼ö·® °¡°Ý //½ÇÀμâ Á¦ÀÛÀå¼ö var paper_qty = 0; paper_qty = Math.ceil(qty_code / make_qty_1paper); document.all.paper_qty.innerHTML = comma(paper_qty); document.all.paper_qty02.innerHTML = comma(paper_qty); //Æø¹æÇâ cmº¯È¯ var width_cm = 0; width_cm = pan_width_cm * pan_width_level; document.all.width_cm.innerHTML = comma(width_cm); //±æÀ̹æÇâ cmº¯È¯ var height_cm = 0; height_cm = pan_height_cm * pan_height_level; document.all.height_cm.innerHTML = comma(height_cm); //°è»ê1 var count01 = 0; count01 = width_cm * height_cm * paper_qty * basic_1mm_price; document.all.count01_02.innerHTML = comma(count01); //¿©ºÐ°è»ê //¿©ºÐ±æÀÌ 50m var paper_rest_count01 = 0; paper_rest_count01 = (pan_width_cm * pan_width_level) * basic_1mm_price * (50 * 100); document.all.paper_rest_count01.innerHTML = comma(paper_rest_count01); var total_paper_price = 0; total_paper_price = count01 + paper_rest_count01; total_paper_price = Math.round(total_paper_price); document.all.total_paper_price.innerHTML = comma(total_paper_price); // alert('Áö´ë°¡°Ý:'+ total_paper_price); document.orderform.paper_price.value = total_paper_price; } //ÄÚÆðª function coating_change_price() { var coating_kind = document.orderform.coating_code.value; //ÄÚÆà Á¾·ù var coating_base_price = 0; //ÄÚÆà ¿ø°¡ var coating_final_price = 0; //ÄÚÆà ÆǸŰ¡ if (coating_kind == "cot05"){ //À¯±¤½á¸ÖÇʸ§ coating_base_price = 600;} else if (coating_kind == "cot06"){ //¹«±¤½á¸ÖÇʸ§ coating_base_price = 650;} else if (coating_kind == "cot03"){ //UVÄÚÆà coating_base_price = 250;} else { coating_base_price = 0;} coating_final_price = coating_base_price * 1.5; document.all.coating_final_price.innerHTML = comma(coating_final_price); //alert('ÄÚÆÃÄÚµå:'+ coating_kind); //alert('ÄÚÆÃÆǸŰ¡:'+ coating_final_price); //1mm´ç°¡°Ý ±âº»´Ü°¡ var basic_1mm_price = 0; basic_1mm_price = coating_final_price * 0.0001; //Æø¹æÇâ cmº¯È¯ var margin_width = 1.5; //ÆøÀç´Ü¿©¹é(ÇÑÂÊ) var margin_height = 1.5; //±æÀÌÀç´Ü¿©¹é(ÇÑÂÊ) var pan_width_cm = 0; //Æø cm°ª var pan_height_cm = 0; //Æø cm°ª var pan_width = Number(document.orderform.size01.value); //Àμ⹰ Æø(ÆíÁý»çÀÌÁî) var pan_height = Number(document.orderform.size02.value); //Àμ⹰ ±æÀÌ(ÆíÁý»çÀÌÁî) var max_width = 304; //Æø±âÁØ(¿ëÁö) var max_height = 254; //±æÀ̱âÁØ(¿ëÁö) var basic_qty = 250; //300*250±âÁØ Á¦À۸żö var pan_width_level = 0; //Æø Á¶ÆÇ°ª var pan_height_level = 0; //±æÀÌ Á¶ÆÇ°ª var qty_code = document.orderform.qty_code.value; //Àμ⹰ Á¦ÀÛ ¸Å¼ö var size_code = document.orderform.size_code.value; //ÇÕÆÇ»çÀÌÁîÄڵ尪 //ÇÕÆÇ»çÀÌÁî¿¡ ´ëÇÑ °ª if (size_code == "psscx") {pan_width = 50; pan_height = 50;} else if (size_code == "psscy") {pan_width = 60; pan_height = 60;} else if (size_code == "psscz") {pan_width = 70; pan_height = 70;} else if (size_code == "pssd0") {pan_width = 100; pan_height = 50;} //ÆøÆíÁý±¸Çϱâ = Àμ⹰Æø + (ÆøÀç´Ü¿©¹é*2) : cm·Î ¸¸µé±â pan_width_cm = (pan_width + (margin_width*2)) / 10; //±æÀÌÆíÁý±¸Çϱâ : cm·Î ¸¸µé±â pan_height_cm = (pan_height + (margin_height*2)) / 10; //Æø Á¶ÆÇ ±¸Çϱâ pan_width_level = pan_width + (margin_width*2); pan_width_level = Math.floor(max_width / pan_width_level); //±æÀÌ Á¶ÆÇ ±¸Çϱâ pan_height_level = pan_height + (margin_height*2); pan_height_level = Math.floor(max_height / pan_height_level); //1ÀåÁ¦À۸żö var make_qty_1paper = 0; make_qty_1paper = pan_width_level * pan_height_level; //¿©±âºÎÅÍ ¼Ò·® ¼ö·® °¡°Ý ºÎºÐ //Æø±âÁØ Á¦À۸żö pan_width_qty = basic_qty * pan_width_level; if (pan_width <= 57 && qty_code < pan_width_qty) { //Æø±âÁØÁ¦À۸żö¸¦ ¼±ÅÃÇѸżöó·³ ³Ö¾î Áö´ë°ªÀ» ±¸ÇÑ´Ù. qty_code = pan_width_qty; } //¿©±â±îÁö ¼Ò·® ¼ö·® °¡°Ý //½ÇÀμâ Á¦ÀÛÀå¼ö var paper_qty = 0; paper_qty = Math.ceil(qty_code / make_qty_1paper); //Æø¹æÇâ cmº¯È¯ var width_cm = 0; width_cm = pan_width_cm * pan_width_level; //±æÀ̹æÇâ cmº¯È¯ var height_cm = 0; height_cm = pan_height_cm * pan_height_level; //°è»ê1 var count01 = 0; count01 = width_cm * height_cm * paper_qty * basic_1mm_price; //¿©ºÐ°è»ê //¿©ºÐ±æÀÌ 50m var paper_rest_count01 = 0; paper_rest_count01 = (pan_width_cm * pan_width_level) * basic_1mm_price * (50 * 100); var total_coating_price = 0; total_coating_price = count01 + paper_rest_count01; total_coating_price = Math.round(total_coating_price); document.all.total_coating_price.innerHTML = comma(total_coating_price); // alert('ÄÚÆð¡°Ý:'+ total_coating_price); document.orderform.coting_price.value = total_coating_price; } //µµ¹«¼Û°ª function domusong_price() { var domusong_kind = document.orderform.after_tom_side.value; //µµ¹«¼Û ¸ð¾çÁ¾·ù var domusong_base_price = 0; //µµ¹«¼Û ¸ð¾ç¿ø°¡ var domusong_final_price = 0; //µµ¹«¼Û ÆǸŰ¡ var domusong_area_price = 0; //µµ¹«¼Û ´Ü°¡Ç¥ var domusong_width = 0; //°¡·Î var domusong_height = 0; //¼¼·Î if (domusong_kind == "2"){ //µµ¹«¼Û °£´Ü domusong_base_price = 5000;} else if (domusong_kind == "3"){ //µµ¹«¼Û Áß°£ domusong_base_price = 10000;} else if (domusong_kind == "4"){ //µµ¹«¼Û º¹Àâ domusong_base_price = 20000;} else if (domusong_kind == "5"){ //µµ¹«¼Û º°(¸ð¼­¸®15°³ÀÌÇÏ) domusong_base_price = 30000;} else if (domusong_kind == "6"){ //µµ¹«¼Û º°(¸ð¼­¸®16°³~30°³) domusong_base_price = 40000;} else { domusong_base_price = 0;} document.all.domusong_base_price.innerHTML = comma(domusong_base_price); //domusong_base_price = domusong_base_price / 5000; domusong_area_price = 60000; //300*250±âÁØ°¡, ¸éÀû75000, ¸éÀû´ç 0.8 //domusong_area_price = domusong_width * domusong_height * 0.8; //¸éÀû ±âº» °¡°Ý document.all.domusong_area_price.innerHTML = comma(domusong_area_price); var pan_width = Number(document.orderform.size01.value); //Àμ⹰ Æø(ÆíÁý»çÀÌÁî) var size_code = document.orderform.size_code.value; //ÇÕÆÇ»çÀÌÁîÄڵ尪 //ÇÕÆÇ»çÀÌÁî¿¡ ´ëÇÑ °ª if (size_code == "psscx") {pan_width = 50; pan_height = 50;} else if (size_code == "psscy") {pan_width = 60; pan_height = 60;} else if (size_code == "psscz") {pan_width = 70; pan_height = 70;} else if (size_code == "pssd0") {pan_width = 100; pan_height = 50;} //Æø¹æÇâ´ç Ãß°¡Åè½¼ºñ var width_plus_price = 0; if (pan_width <= 10){width_plus_price = 7000;} else if(pan_width > 10 && pan_width <= 22){width_plus_price = 10000;} else if(pan_width > 22 && pan_width <= 28){width_plus_price = 4000;} else if(pan_width > 28 && pan_width <= 30){width_plus_price = 1000;} else if(pan_width > 30){width_plus_price = 0;} else {width_plus_price = 0;} document.all.width_plus_price.innerHTML = comma(width_plus_price); //ÀμâÅë¼ö Ãß°¡Åè½¼ºñ ±¸Çϱâ var tong_plus_price = 0; //¸ÕÀú Åë¼ö¸¦ ±¸ÇØ¾ß ÇÑ´Ù. ±×·¡¾ß 250¸Å ±âÁØ Åë¼ö¸¦ ±¸ÇÔ var margin_width = 1.5; //ÆøÀç´Ü¿©¹é(ÇÑÂÊ) var max_width = 304; //Æø±âÁØ(¿ëÁö) var pan_width_level = 0; //Æø Á¶ÆÇ°ª var pan_width = Number(document.orderform.size01.value); //Àμ⹰ Æø(ÆíÁý»çÀÌÁî) var pan_height = Number(document.orderform.size02.value); //Àμ⹰ ±æÀÌ(ÆíÁý»çÀÌÁî) //Æø Á¶ÆÇ ±¸Çϱâ //1.ÆøÆíÁý±¸Çϱâ = Àμ⹰Æø + (ÆøÀç´Ü¿©¹é*2) pan_width_level = pan_width + (margin_width*2); //2.Æø Á¶ÆDZ¸Çϱâ pan_width_level = Math.floor(max_width / pan_width_level); var qty_code = Number(document.orderform.qty_code.value); //Àμ⹰ Á¦ÀÛ ¸Å¼ö //ÇÕÆÇ»çÀÌÁî¿¡ ´ëÇÑ °ª if (size_code == "psscx") {pan_width = 50; pan_height = 50;} else if (size_code == "psscy") {pan_width = 60; pan_height = 60;} else if (size_code == "psscz") {pan_width = 70; pan_height = 70;} else if (size_code == "pssd0") {pan_width = 100; pan_height = 50;} //¸Å¼ö¸¦ ÆøÁ¶ÆÇÀ¸·Î ³ª´©¸é ±âº» 250¸Å Åë¼ö°¡ ³ª¿È var total_tong_qty = 0; //¿©±âºÎÅÍ ¼Ò·® ¼ö·® °¡°Ý ºÎºÐ if (pan_width <= 57 && qty_code < pan_width_level) { total_tong_qty = 1; } else{ total_tong_qty = qty_code / pan_width_level; } //¿©±â±îÁö ¼Ò·® ¼ö·® °¡°Ý if (total_tong_qty < 10000){tong_plus_price = 0;} else if (total_tong_qty >= 10000 && total_tong_qty < 20000){tong_plus_price = 5000;} else if (total_tong_qty >= 20000 && total_tong_qty < 50000){tong_plus_price = 10000;} else if (total_tong_qty >= 50000 && total_tong_qty < 100000){tong_plus_price = 20000;} else if (total_tong_qty >= 100000){tong_plus_price = 30000;} else {tong_plus_price = 0;} document.all.tong_plus_price.innerHTML = comma(tong_plus_price); // var tong_plus_price = 0; // if (document.orderform.qty_code[0].selected == true){tong_plus_price = 7000;} // else if(document.orderform.qty_code[1].selected == true){tong_plus_price = 10000;} // else if(document.orderform.qty_code[2].selected == true){tong_plus_price = 10000;} //°è»ê1 var count01 = 0; count01 = domusong_base_price + domusong_area_price + width_plus_price + tong_plus_price; document.all.count01_03.innerHTML = comma(count01); //±æÀÌÂÊÃß°¡±Ý¾× var height_plus_price = 0; if (pan_height > 17){height_plus_price = 0;} else if (pan_height > 13 && pan_height <= 17){height_plus_price = 5000;} else if (pan_height > 11 && pan_height <= 13){height_plus_price = 14000;} else if (pan_height <= 10){height_plus_price = 20000;} else {height_plus_price = 0;} document.all.height_plus_price.innerHTML = comma(height_plus_price); //º¹Àâµµ °è»ê domusong_final_price = count01 + height_plus_price ; document.all.domusong_final_price.innerHTML = comma(domusong_final_price); // alert('µµ¹«¼Û°¡°Ý:'+ domusong_final_price); document.orderform.after_price_domoo.value = domusong_final_price; } //¹Ú°ª //¹Ú°¡°Ý function bak_price_roll() { var subtitle = document.orderform.product_num.value; var margin_width = 1.5; //ÆøÀç´Ü¿©¹é(ÇÑÂÊ) var margin_height = 1.5; //±æÀÌÀç´Ü¿©¹é(ÇÑÂÊ) var max_width = 304; //Æø±âÁØ(¿ëÁö) var max_height = 254; //±æÀ̱âÁØ(¿ëÁö) var basic_qty = 250; //300*250±âÁØ Á¦À۸żö var pan_width = Number(document.orderform.size01.value); //Àμ⹰ Æø(ÆíÁý»çÀÌÁî) var pan_height = Number(document.orderform.size02.value); //Àμ⹰ ±æÀÌ(ÆíÁý»çÀÌÁî) var pan_width_level = 0; //Æø Á¶ÆÇ°ª var pan_height_level = 0; //±æÀÌ Á¶ÆÇ°ª var bak_kind = document.orderform.after_bak_color_new.value; //¹Ú Á¾·ù var bak_base_price = 0; //¹Ú ±âº»¼ÂÆúñ var bak_final_price = 0; //¹Ú ÆǸŰ¡ var bak_width = Number(document.orderform.bak_width_new.value); //°¡·Î var bak_height = Number(document.orderform.bak_height_new.value); //¼¼·Î document.all.bak_width_vle.innerHTML = comma(bak_width); document.all.bak_height_vle.innerHTML = comma(bak_height); var bak_area = 0; //¸éÀû var qty_code = document.orderform.qty_code.value; //Àμ⹰ Á¦ÀÛ ¸Å¼ö //°¡·ÎÆøÁ¶ÆǼö var width_pan_cnt = 0; width_pan_cnt = Math.floor(max_width / (bak_width + 3)) document.all.width_pan_cnt.innerHTML = comma(width_pan_cnt); //¼¼·Î±æÀÌÁ¶ÆǼö var height_pan_cnt = 0; height_pan_cnt = Math.floor(max_height / (bak_height + 3)) document.all.height_pan_cnt.innerHTML = comma(height_pan_cnt); //alert("°¡·ÎÆøÁ¶ÆǼö:" + width_pan_cnt + "¼¼·Î±æÀÌÁ¶ÆǼö:" + height_pan_cnt); //¹ÚÀμâ¸éÀû //Æø Á¶ÆÇ ±¸Çϱâ pan_width_level = pan_width + (margin_width*2); pan_width_level = Math.floor(max_width / pan_width_level); //±æÀÌ Á¶ÆÇ ±¸Çϱâ pan_height_level = pan_height + (margin_height*2); pan_height_level = Math.floor(max_height / pan_height_level); bak_area = (((bak_width + 3)/10) * pan_width_level) * (((bak_height + 3)/10) * pan_height_level); document.all.bak_area.innerHTML = comma(bak_area); //alert("¹ÚÀμâ¸éÀû:" + bak_area); if (bak_area >= 0 && bak_area < 10){ //¹Ú °£´Ü bak_base_price = 8.1;} else if (bak_area >= 10 && bak_area < 20){ bak_base_price = 4.7;} else if (bak_area >= 20 && bak_area < 30){ bak_base_price = 3.1;} else if (bak_area >= 30 && bak_area < 40){ bak_base_price = 2.25;} else if (bak_area >= 40 && bak_area < 50){ bak_base_price = 1.75;} else if (bak_area >= 50 && bak_area < 60){ bak_base_price = 1.5;} else if (bak_area >= 60 && bak_area < 70){ bak_base_price = 1.4;} else if (bak_area >= 70 && bak_area < 80){ bak_base_price = 1.3;} else if (bak_area >= 80 && bak_area < 90){ bak_base_price = 1.2;} else if (bak_area >= 90 && bak_area < 100){ bak_base_price = 1.2;} else if (bak_area >= 100 && bak_area < 200){ bak_base_price = 0.94;} else if (bak_area >= 200 && bak_area < 300){ bak_base_price = 0.81;} else if (bak_area >= 300 && bak_area < 400){ bak_base_price = 0.79;} else if (bak_area >= 400 && bak_area < 500){ bak_base_price = 0.78;} else if (bak_area >= 500 && bak_area < 600){ bak_base_price = 0.77;} else if (bak_area >= 600 && bak_area < 700){ bak_base_price = 0.76;} else if (bak_area >= 700){ bak_base_price = 0.75;} else { bak_base_price = 0;} //alert("cm2´ç ´Ü°¡:" + bak_base_price); document.all.bak_base_price.innerHTML = comma(bak_base_price); //¹ÚÀμ⠸éÀûºñ¿ë var bak_area_price = 0; //1ÀåÁ¦À۸żö var make_qty_1paper = 0; make_qty_1paper = pan_width_level * pan_height_level; //alert("1ÀåÁ¦À۸żö:" + make_qty_1paper); //½ÇÀμâ Á¦ÀÛÀå¼ö var paper_qty = 0; paper_qty = Math.ceil(qty_code / make_qty_1paper); //alert("½ÇÀμâ Á¦ÀÛÀå¼ö:" + paper_qty); //¹Ú ±âº»¼ÂÆúñ var bak_base_setprice = 30000; //±æÀÌÂÊ mm´çÃß°¡±Ý¾× var bak_width_mmprice = 0; if (paper_qty > 1000){bak_width_mmprice = 60;} else {bak_width_mmprice = 70;} //¹ÚÀμ⿩ºÐÀå¼ö var bak_print_marginpaper = 60; bak_area_price = bak_area * bak_base_price * (paper_qty + bak_print_marginpaper); bak_area_price = Math.round(bak_area_price); document.all.bak_area_price.innerHTML = comma(bak_area_price); //alert("¹ÚÀμ⠸éÀûºñ¿ë:" + bak_area_price); //¹ÚÀμâ±â ±âº»¼ÂÆúñ var bak_print_setprice = 0; bak_print_setprice = bak_base_setprice + ((250 - bak_height) * bak_width_mmprice) document.all.bak_print_setprice.innerHTML = comma(bak_print_setprice); //¹ÚÀμⰡ°Ý(±âº» 250Àå±âÁØ) var bak_price_250paper = 0; bak_price_250paper = bak_area_price + bak_print_setprice; document.all.bak_price_250paper.innerHTML = comma(bak_price_250paper); //alert("¹ÚÀμâ±â ±âº»¼ÂÆúñ:" + bak_print_setprice + " ¹ÚÀμⰡ°Ý(±âº» 250Àå±âÁØ):" + bak_price_250paper); //¹Ú °¡°Ý bak_final_price = 0; //Æø±âÁØ Á¦À۸żö pan_width_qty = basic_qty * pan_width_level; //ÀμâÅë¼ö tong_qty = qty_code / pan_width_qty; if (tong_qty > 1) { bak_final_price = bak_price_250paper + ((tong_qty - 1)*7000); } else { bak_final_price = bak_price_250paper; } //alert("¹Ú°¡°Ý:" + bak_final_price + " :¹Ú Àº ÈÄ°¡°øÀ¸·Î µé¾î°©´Ï´Ù. Àüü±Ý¾×¿¡ °ð ÇÕ»êµÉ°Ì´Ï´Ù."); bak_final_price = Math.round(bak_final_price / 100) * 100 * subtitle; document.all.bak_final_price.innerHTML = comma(bak_final_price); document.orderform.after_price_bak_total.value = 0; document.orderform.after_price_bak_total.value = bak_final_price; //ÈÄ°¡°ø Àüü±Ý¾×¿¡ ³Ö¾îÁØ´Ù. document.all.span_total_after_price_plus.innerHTML = comma(bak_final_price); bak_change(); } //¼Ò·®¼ö·®°¡°ÝÀ» À§ÇÑ //±æÀÌÇÒÁõÀû¿ë°¡ - ±âº»¼ö·®¿¡ ´ëÇÑ °¡°Ý //¶«»§½Ä ÇÔ¼ö¸¦ ¸¸µé¾î¾ß ÇÑ´Ù´Ï... Âü ¼ö½ÄÀÌ ¾û¸ÁÀ̶ó... ÇÁ·Î±×·¥ÀÌ ¾û¸ÁÀÌ µÇ´Â °úÁ¤... //Âü ź½ÄÀÌ Àý·Î ³ª¿Â´Ù. function little_size_change_text() { var subtitle = document.orderform.product_num.value; var margin_width = 1.5; //ÆøÀç´Ü¿©¹é(ÇÑÂÊ) var margin_height = 1.5; //±æÀÌÀç´Ü¿©¹é(ÇÑÂÊ) var max_width = 304; //Æø±âÁØ(¿ëÁö) var max_height = 254; //±æÀ̱âÁØ(¿ëÁö) var basic_qty = 250; //300*250±âÁØ Á¦À۸żö var pan_width_level = 0; //Æø Á¶ÆÇ°ª var pan_height_level = 0; //±æÀÌ Á¶ÆÇ°ª var pan_width = Number(document.orderform.size01.value); //Àμ⹰ Æø(ÆíÁý»çÀÌÁî) var pan_height = Number(document.orderform.size02.value); //Àμ⹰ ±æÀÌ(ÆíÁý»çÀÌÁî) var pan_width_qty = 0; //Æø±âÁØ Á¦À۸żö var tong_qty = 0; //Àμâ Åë¼ö //var qty_code = document.orderform.qty_code.value; //Àμ⹰ Á¦ÀÛ ¸Å¼ö var qty_code = 0; //¿©±â¿¡ Æø±âÁØ Á¦À۸żö¸¦ ³Ö¾îÁÜ // ¿Ö? °¡Àå ±âº»¼ö·®¿¡ ´ëÇÑ ¿ø·¡ °¡°ÝÀ» ¾Ë±â À§Çؼ­... ÀÌ°Å Çϳª¸¦ ¾Ë±â À§Çؼ­ var pan_width_str = 0; //ÆøÁ¶ÆǽÃÀÛ var pan_width_end = 0; //ÆøÁ¶Ædz¡ var str_qty250 = 0; //Á¶ÆǺ° 250Àå ½ÃÀÛ°¡ var end_qty250 = 0; //Á¶ÆǺ° 250Àå Á¾·á°¡ var mm_price = 0; //Á¶ÆǺ° mm´Ü°¡ var pan_max_str = 0; //ÆøÁ¶ÆǺ° ÃÖ´ë½ÃÀÛ°¡ var pan_max_end = 0; //ÆøÁ¶ÆǺ° ÃÖ´ëÁ¾·á°¡ var pan_mm_sale_str = 0; //Æø±âÁغ° ±æÀÌmm´ç ÇÒÀνÃÀÛ°¡ var pan_mm_sale_end = 0; //Æø±âÁغ° ±æÀÌmm´ç ÇÒÀÎÁ¾·á°¡ var dan_value = 0; //´Ü°è°ª var size_code = document.orderform.size_code.value; //ÇÕÆÇ»çÀÌÁîÄڵ尪 //ÇÕÆÇ»çÀÌÁî¿¡ ´ëÇÑ °ª if (size_code == "psscx") {pan_width = 50; pan_height = 50;} else if (size_code == "psscy") {pan_width = 60; pan_height = 60;} else if (size_code == "psscz") {pan_width = 70; pan_height = 70;} else if (size_code == "pssd0") {pan_width = 100; pan_height = 50;} //document.all.pan_width.innerHTML = comma(pan_width); //document.all.pan_height.innerHTML = comma(pan_height); // //document.all.margin_width.innerHTML = comma(margin_width); //document.all.margin_height.innerHTML = comma(margin_height); // //document.all.basic_qty.innerHTML = comma(basic_qty); //Æø Á¶ÆÇ ±¸Çϱâ //1.ÆøÆíÁý±¸Çϱâ = Àμ⹰Æø + (ÆøÀç´Ü¿©¹é*2) pan_width_level = pan_width + (margin_width*2); // alert("pan_width_level: "+ pan_width_level); //2.Æø Á¶ÆDZ¸Çϱâ pan_width_level = Math.floor(max_width / pan_width_level); //document.all.pan_width_level.innerHTML = comma(pan_width_level); //±æÀÌ Á¶ÆÇ ±¸Çϱâ pan_height_level = pan_height + (margin_height*2); pan_height_level = Math.floor(max_height / pan_height_level); //document.all.pan_height_level.innerHTML = comma(pan_height_level); //Æø±âÁØ Á¦À۸żö pan_width_qty = basic_qty * pan_width_level; //document.all.pan_width_qty.innerHTML = comma(pan_width_qty); //Àμâ¸Å¼ö¿¡ Æø±âÁØÁ¦À۸żö¸¦ ³Ö¾îÁÜ //¿Ö? ¼Ò·®ÀμâÀÇ °¡°Ý¿¡¼­ ±âº» ÀμâÀÇ °¡Àå ±âº»¼ö·®¿¡ ´ëÇÑ °¡°ÝÀ» ¾Ë±â À§Çؼ­... qty_code = pan_width_qty; //ÀμâÅë¼ö tong_qty = qty_code / pan_width_qty; //document.all.tong_qty.innerHTML = comma(tong_qty); //ÆøÁ¶ÆÇ °ü·Ã °ªµé if (pan_width_level == 1){ pan_width_str = 300; pan_width_end = 150; str_qty250 = 63100; end_qty250 = 55000; pan_max_str = 5497000; pan_max_end = 2840500; pan_mm_sale_str = 53; pan_mm_sale_end = 26.8; } else if (pan_width_level == 2){ pan_width_str = 149; pan_width_end = 99; str_qty250 = 63400; end_qty250 = 58000; pan_max_str = 5584700; pan_max_end = 3813700; pan_mm_sale_str = 55; pan_mm_sale_end = 35.7; } else if (pan_width_level == 3){ pan_width_str = 98; pan_width_end = 74; str_qty250 = 63500; end_qty250 = 59600; pan_max_str = 5637000; pan_max_end = 4631900; pan_mm_sale_str = 53; pan_mm_sale_end = 43.2; } else if (pan_width_level == 4){ pan_width_str = 73; pan_width_end = 58; str_qty250 = 63700; end_qty250 = 60500; pan_max_str = 5724700; pan_max_end = 4662100; pan_mm_sale_str = 53.2; pan_mm_sale_end = 42.7; } else if (pan_width_level == 5){ pan_width_str = 57; pan_width_end = 48; str_qty250 = 63700; end_qty250 = 61300; pan_max_str = 5723900; pan_max_end = 4926900; pan_mm_sale_str = 53; pan_mm_sale_end = 44.6; } else if (pan_width_level == 6){ pan_width_str = 47; pan_width_end = 41; str_qty250 = 63800; end_qty250 = 61900; pan_max_str = 5793900; pan_max_end = 5156300; pan_mm_sale_str = 52.5; pan_mm_sale_end = 46.2; } else if (pan_width_level == 7){ pan_width_str = 40; pan_width_end = 36; str_qty250 = 64100; end_qty250 = 62600; pan_max_str = 5881600; pan_max_end = 5385700; pan_mm_sale_str = 52.7; pan_mm_sale_end = 47.8; } else if (pan_width_level == 8){ pan_width_str = 35; pan_width_end = 31; str_qty250 = 64400; end_qty250 = 62700; pan_max_str = 6004700; pan_max_end = 5438000; pan_mm_sale_str = 53.2; pan_mm_sale_end = 47.6; } else if (pan_width_level == 9){ pan_width_str = 30; pan_width_end = 28; str_qty250 = 64200; end_qty250 = 63200; pan_max_str = 5950700; pan_max_end = 5631900; pan_mm_sale_str = 52; pan_mm_sale_end = 48.7; } else if (pan_width_level == 10){ pan_width_str = 27; pan_width_end = 25; str_qty250 = 64500; end_qty250 = 63500; pan_max_str = 6073900; pan_max_end = 5719700; pan_mm_sale_str = 52.5; pan_mm_sale_end = 49; } else if (pan_width_level == 11){ pan_width_str = 24; pan_width_end = 23; str_qty250 = 64600; end_qty250 = 64000; pan_max_str = 6090700; pan_max_end = 5895900; pan_mm_sale_str = 51.9; pan_mm_sale_end = 50.1; } else if (pan_width_level == 12){ pan_width_str = 22; pan_width_end = 21; str_qty250 = 64900; end_qty250 = 64300; pan_max_str = 6213900; pan_max_end = 6001300; pan_mm_sale_str = 52.5; pan_mm_sale_end = 50.4; } else if (pan_width_level == 13){ pan_width_str = 20; pan_width_end = 19; str_qty250 = 65000; end_qty250 = 64300; pan_max_str = 6226100; pan_max_end = 6035900; pan_mm_sale_str = 52; pan_mm_sale_end = 50.1; } else if (pan_width_level == 14){ pan_width_str = 18; pan_width_end = 18; str_qty250 = 64900; end_qty250 = 64900; pan_max_str = 6247600; pan_max_end = 6247600; pan_mm_sale_str = 51.5; pan_mm_sale_end = 51.5; } else if (pan_width_level == 15){ pan_width_str = 17; pan_width_end = 17; str_qty250 = 65400; end_qty250 = 65400; pan_max_str = 6423900; pan_max_end = 6423900; pan_mm_sale_str = 52.5; pan_mm_sale_end = 52.5; } else if (pan_width_level == 16){ pan_width_str = 16; pan_width_end = 15; str_qty250 = 65800; end_qty250 = 65000; pan_max_str = 6564700; pan_max_end = 6281300; pan_mm_sale_str = 53.2; pan_mm_sale_end = 53.2; } else if (pan_width_level == 17){ pan_width_str = 14; pan_width_end = 14; str_qty250 = 65200; end_qty250 = 65200; pan_max_str = 6369000; pan_max_end = 6369000; pan_mm_sale_str = 50.4; pan_mm_sale_end = 50.4; } else if (pan_width_level == 19){ pan_width_str = 13; pan_width_end = 13; str_qty250 = 65300; end_qty250 = 65300; pan_max_str = 6774700; pan_max_end = 6774700; pan_mm_sale_str = 53.2; pan_mm_sale_end = 53.2; } else if (pan_width_level == 20){ pan_width_str = 12; pan_width_end = 12; str_qty250 = 66300; end_qty250 = 66300; pan_max_str = 6773900; pan_max_end = 6773900; pan_mm_sale_str = 52.5; pan_mm_sale_end = 52.5; } else if (pan_width_level == 21){ pan_width_str = 11; pan_width_end = 11; str_qty250 = 66100; end_qty250 = 66100; pan_max_str = 6737600; pan_max_end = 6737600; pan_mm_sale_str = 51.6; pan_mm_sale_end = 51.6; } else if (pan_width_level == 23){ pan_width_str = 10; pan_width_end = 10; str_qty250 = 66800; end_qty250 = 66800; pan_max_str = 6966100; pan_max_end = 6966100; pan_mm_sale_str = 52.3; pan_mm_sale_end = 52.3; } //Á¶ÆǺ° mm´Ü°¡ if ((str_qty250 - end_qty250) == 0){ mm_price = 0; } else { mm_price = (str_qty250 - end_qty250) / (pan_width_str - pan_width_end); mm_price = Math.round(mm_price*100000000)/100000000; } //alert("Á¶ÆǺ° 250½ÃÀÛ°¡:" + str_qty250 + " end_qty250:" + end_qty250 + " pan_width_str:" + pan_width_str + " pan_width_end:" + pan_width_end); //´Ü°è°ª if ((pan_mm_sale_str - pan_mm_sale_end) == 0){ dan_value = 0; } else { dan_value = (pan_mm_sale_str - pan_mm_sale_end) / (pan_width_str - pan_width_end); dan_value = Math.round(dan_value*100000000)/100000000; } //document.all.str_qty250.innerHTML = comma(str_qty250); //document.all.end_qty250.innerHTML = comma(end_qty250); //document.all.mm_price.innerHTML = comma(mm_price); //250Àå °¡°Ý±¸Çϱâ(Æø¹æÇâ*250) //ÆøÇÒÀÎÀû¿ë°¡ ±¸Çϱâ //Á¶ÆǺ° 250½ÃÀÛ°¡ - (Á¶ÆǺ° mm´Ü°¡ * (ÆøÁ¶ÆǽÃÀÛ - Æø¹æÇâ)) var pan_width_sale_price = 0; pan_width_sale_price = str_qty250 - (mm_price * (pan_width_str - pan_width)); //100¿ø´ÜÀ§ ¹Ý¿Ã¸² pan_width_sale_price = Math.round(pan_width_sale_price/100)*100; //document.all.pan_width_sale_price.innerHTML = comma(pan_width_sale_price); //alert("ÆøÇÒÀÎÀû¿ë°¡:" + pan_width_sale_price); //alert("Á¶ÆǺ° 250½ÃÀÛ°¡:" + str_qty250 + " mm_price:" + mm_price + " pan_width_str:" + pan_width_str + " pan_width:" + pan_width); //document.all.pan_max_str.innerHTML = comma(pan_max_str); //document.all.pan_max_end.innerHTML = comma(pan_max_end); //Åë¼öº° ´Ü°è°ª±¸Çϱâ(ÃÖ´ë½ÃÀÛ°¡) //1Åë´ç Àû¿ë±Ý¾× ( ±âº»1Åë°¡°Ý ÀÌÈÄ Ãß°¡µÇ´Â Åë¿¡ ´ëÇÑ °¡°Ý. Áï, 1Åë + Ãß°¡1Åë ÃÑ2ÅëÀ̶ó¸é, Ãß°¡1Åë¿¡ ´ëÇÑ °¡°Ý) //(ÆøÁ¶ÆǺ° ÃÖ´ë½ÃÀÛ - ÆøÁ¶ÆǺ° 250Àå ½ÃÀÛ°¡) / 399 var plus_tong_price_max = 0; var plus_tong_price_min = 0; plus_tong_price_max = (pan_max_str - str_qty250) / 399; plus_tong_price_min = (pan_max_end - end_qty250) / 399; //document.all.plus_tong_price_max.innerHTML = comma(plus_tong_price_max); //document.all.plus_tong_price_min.innerHTML = comma(plus_tong_price_min); //document.all.plus_tong_price_max_02.innerHTML = comma(plus_tong_price_max); //document.all.plus_tong_price_min_02.innerHTML = comma(plus_tong_price_min); //alert("plus_tong_price_max:" + plus_tong_price_max); //alert("plus_tong_price_min:" + plus_tong_price_min); //Åë¼öº° ´Ü°è°ª±¸Çϱâ //Àû¿ëÅë¼ö ´Ü°è°ª ±¸Çϱâ var tong_step_price = 0; var imsi_plus_tong_price = 0; var imsi_pan_width_minus = 0; var imsi_mm_tong_step_price = 0; //ÆøÁ¶ÆÇ mm´ç Åë¼ö´Ü°è°ª //1Åë´ç Àû¿ë±Ý¾× Â÷ÀÌ(ÃÖ´ë-ÃÖ¼Ò) imsi_plus_tong_price = Number(plus_tong_price_max) - Number(plus_tong_price_min); //document.all.imsi_plus_tong_price.innerHTML = comma(imsi_plus_tong_price); //Æø»çÀÌÁî ÃÖ´ë-ÃÖ¼Ò Â÷ÀÌ imsi_pan_width_minus = pan_width_str - pan_width_end; //document.all.imsi_pan_width_minus.innerHTML = comma(imsi_pan_width_minus); //ÆøÁ¶ÆÇ mm´ç Åë¼ö´Ü°è°ª if (imsi_plus_tong_price == 0 ){ imsi_mm_tong_step_price = 0; } else{ imsi_mm_tong_step_price = imsi_plus_tong_price / imsi_pan_width_minus; } //document.all.imsi_mm_tong_step_price.innerHTML = comma(imsi_mm_tong_step_price); tong_step_price = imsi_mm_tong_step_price * (pan_width_str - pan_width); tong_step_price = plus_tong_price_max - tong_step_price; //Àû¿ëÅë¼ö ´Ü°è°ª -- ¹é¿ø´ÜÀ§ ¸¸µé±â // ÀÌ °¡°ÝÀÌ Ãß°¡µÇ´Â 1Åë °¡°ÝÀÌ µÊ tong_step_price = Math.round(tong_step_price/100)*100; //document.all.tong_step_price.innerHTML = comma(tong_step_price); //alert("Àû¿ëÅë¼ö ´Ü°è°ª:" + tong_step_price); //°è»êÅë¼ö var cnt_tong_qty = 0; cnt_tong_qty = tong_qty - 1; //document.all.cnt_tong_qty.innerHTML = comma(cnt_tong_qty); //°è»ê1 - ÆøÇÒÀÎÀû¿ë°¡ ±¸ÇÏ´Â ´Ü°è var count01 = 0; count01 = tong_step_price * cnt_tong_qty; //document.all.count01.innerHTML = comma(count01); //alert("°è»ê1:" + count01); //ÆøÇÒÀÎÀû¿ë°¡(1Åë°¡°Ý+Ãß°¡Åë¼ö°¡°Ý) var total_pan_width_sale_price = 0; total_pan_width_sale_price = pan_width_sale_price + count01; total_pan_width_sale_price = Math.round(total_pan_width_sale_price/100)*100; //¹é¿ø´ÜÀ§·Î ¹Ý¿Ã¸² //document.all.total_pan_width_sale_price.innerHTML = comma(total_pan_width_sale_price); //alert("ÆøÇÒÀÎÀû¿ë°¡(1Åë°¡°Ý+Ãß°¡Åë¼ö°¡°Ý):" + total_pan_width_sale_price); //±æÀ̹æÇâ ÇÒÀΰª ±¸Çϱâ //±æÀ̹æÇâ°è»ê var pan_height_rest = 0; pan_height_rest = 253 - pan_height; //document.all.pan_height_rest.innerHTML = comma(pan_height_rest); //1mm´ç ±æÀ̹æÇâ ÇÒÀδܰ¡ var height_1mm_saleprice = 0; //Æø¹æÇâ°è»ê : (pan_width_str - pan_width) * ´Ü°è°ª height_1mm_saleprice = (pan_width_str - pan_width) * dan_value; //alert("pan_width_str:" + pan_width_str + " pan_width:" + pan_width + " dan_value:" + dan_value); //document.all.height_1mm_saleprice.innerHTML = comma(height_1mm_saleprice); //°è»ê1 - ±æÀ̹æÇâ ÇÒÀ઱¸Çϱâ var height_count01 = 0; height_count01 = pan_mm_sale_str - height_1mm_saleprice; //document.all.height_count01.innerHTML = comma(height_count01); //°è»ê2 - ±æÀ̹æÇâ ÇÒÀ઱¸Çϱâ var height_count02 = 0; height_count02 = height_count01 * pan_height_rest; //document.all.height_count02.innerHTML = comma(height_count02); //°è»ê2 °ªÀ» ÀÎDz¹Ú½º¿¡ Àӽà ³Ö¾îÁÜ document.orderform.height_count02_vle.value = 0; document.orderform.height_count02_vle.value = height_count02; //°è»ê3 - ±æÀ̹æÇâ ÇÒÀ઱¸Çϱâ var height_count03 = 0; height_count03 = height_count02 * tong_qty; //document.all.height_count03.innerHTML = comma(height_count03); //±æÀÌÇÒÁõÀû¿ë°¡ var total_pan_height_sale_price = 0; total_pan_height_sale_price = total_pan_width_sale_price - height_count03; total_pan_height_sale_price = Math.round(total_pan_height_sale_price/100)*100; //document.all.total_pan_height_sale_price.innerHTML = comma(total_pan_height_sale_price); //alert(total_pan_height_sale_price); //¿©±â±îÁö ÀÌ»ó¾øÀ½ //°¡°ÝÀ» Àӽà ³Ö¾îÁÜ document.orderform.imsi_pay.value = 0; document.orderform.imsi_pay.value = total_pan_height_sale_price; } //ÈÄ°¡°ø ÃÑÇÕ°è function total_after(){ var frm = document.orderform; var total_price_after = 0; total_price_after = eval(frm.after_price_bak_total.value); //ÈÄ°¡°ø frm.after_total_price_plus.value = total_price_after; document.all.span_total_after_price_plus.innerHTML = comma(total_price_after); }